home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / CODE / Chap02 / GdiDemo2 / GdiDemo2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-05  |  843 b   |  41 lines

  1. //***********************************************************************
  2. //
  3. //  GdiDemo2.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CMyApp : public CWinApp
  8. {
  9. public:
  10.     virtual BOOL InitInstance ();
  11. };
  12.  
  13. class CMainWindow : public CFrameWnd
  14. {
  15. private:
  16.     int m_cxChar;
  17.     int m_cyChar;
  18.     int m_nPageSize;
  19.     int m_nScrollPos;
  20.  
  21.     void ShowPenStyles (CDC*, int, int);
  22.     void ShowPenWidths (CDC*, int, int);
  23.     void ShowBrushStyles (CDC*, int, int);
  24.  
  25. public:
  26.     CMainWindow ();
  27.  
  28. protected:
  29.     afx_msg int OnCreate (LPCREATESTRUCT);
  30.     afx_msg void OnPaint ();
  31.     afx_msg void OnSize (UINT, int, int);
  32.     afx_msg void OnVScroll (UINT, UINT, CScrollBar*);
  33.  
  34.     DECLARE_MESSAGE_MAP ()
  35. };
  36.  
  37. struct STYLES {
  38.     int nStyle;
  39.     char szStyleName[16];
  40. };
  41.